package com.lkx.farmershop.model.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;

import java.io.Serializable;

/**
 * (UserWord)实体类
 *
 * @author makejava
 * @since 2025-03-01 15:34:09
 */
@Setter
@Getter
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserWord implements Serializable {
    private static final long serialVersionUID = 187150390049018196L;
/**
     * 主键
     */
    @TableId
    private Long id;
/**
     * 用户id
     */
    private Long userId;
/**
     * 用户感兴趣的关键词
     */
    private String word;
/**
     * 用户接触次数
     */
    private Integer count = 1;

    public UserWord(Long userId, String word, Integer count) {
        this.userId = userId;
        this.word = word;
        this.count = count;
    }
}

